package com.moliku.insurance.common.constant;

import lombok.Getter;

/**
 * 保险配置 key
 *
 * @author Mr.Liu
 * @since 2021/3/29
 */
@Getter
public enum PolicyConfigKeyEnum {
    /**
     * 配置key
     */
    SUBMIT_POLICY_URL("submitPolicyUrl", "投保请求地址"),
    CANCEL_POLICY_URL("cancelPolicyUrl", "退保请求地址"),
    DOWNLOAD_POLICY_URL("downloadPolicyUrl", "下载保单请求地址"),
    USERNAME("username", "账号"),
    PASSWORD("password", "密码"),
    AGENCY_USERID("agencyUserId", "代理人"),
    PRIVATE_KEY("privateKey", "私有key"),
    CLIENT_ID("client_id", "客户端id"),
    CLIENT_SECRET("client_secret", "客户端密钥"),
    PARTNER_ACCOUNT_CODE("partnerAccountCode", "合伙人编码"),
    FLOW_ID("flowId", "流程ID"),
    CONSUMER_ID("consumerId", "消费者ID"),
    USER_CODE("userCode", "用户代码"),
    OPERATE_CODE("operateCode", "操作员"),
    AGREEMENT_CODE("agreementCode", "协议代码"),
    SALER_NAME("salerName", "产销人员"),
    SALER_NUMBER("salerNumber", "产销人员职业证"),
    REQUEST_TYPE("requestType", "请求类型"),
    USER("user", "合作方用户"),
    PARTNER_ID("partnerId", "商户号"),
    TRAN_CODE("tranCode", "渠道编码"),
    ;
    private final String key;
    private final String desc;

    PolicyConfigKeyEnum(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }
}
